package auth.service;

import auth.service.impl.OrderServiceFeignClientFallback;
import common.model.result.Result;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@Service
@FeignClient(name = "order-server",fallback = OrderServiceFeignClientFallback.class)
public interface OrderServiceFeignClient {
    //获取用户订单
    @GetMapping("/order/list")
    Result getOrderList(@RequestHeader("uid") Long uid);
    //获取所有订单
    @GetMapping("/order/jiang/list")
    Result getAllOrders();
}
